Singleton Kinds and Singleton Types

نویسندگان

  • Christopher Allan Stone
  • Peter Lee
  • John Reynolds
  • Jon Riecke
  • Joseph F. Bradley
چکیده

In this dissertation I study the properties of singleton kinds and singleton types. These are extremely precise classi ers for types and values, respectively: the kind of all types equal to [a given type], and the type of all values equal to [a given value]. Singletons are interesting because they provide a very general and modular form of de nition, allow ne-grained control of type computations, and allow many equational constraints to be expressed within the type system. This is useful, for example, when modeling the type sharing and type de nition constraints appearing in module signatures in the Standard ML language; singletons are used for this purpose in the TILT compiler for Standard ML. However, the decidability of typechecking in the presence of singletons is not obvious. In order to typecheck a term, one must be able to determine whether two type constructors are provably equivalent. But in the presence of singleton kinds, the equivalence of type constructors depends both on the typing context in which they are compared and on the kind at which they are compared. In this dissertation I present MIL0, a lambda calculus with singletons that is based upon the representation used by the TILT compiler. I prove important properties of this language, including type soundness and decidability of typechecking. The main technical result is decidability of equivalence for well-formed type constructors. Inspired by Coquand's result for type theory, I prove decidability of constructor equivalence for MIL0 by exhibiting a novel | though slightly ineÆcient | type-directed comparison algorithm. The correctness of this algorithm is proved using an interesting variant of Kripke-style logical relations: unary relations are indexed by a single possible world (in our case, a typing context), but binary relations are indexed by two worlds. Using this result I can then show the correctness of a natural, practical algorithm used by the TILT compiler.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

On a new G-frame and duality

We introduce a new g-frame (singleton g-frame), g-orthonormal basis and g-Riesz basis and study corresponding notions in some other generalizations of frames.Also, we investigate duality  for some kinds of g-frames. Finally, we illustrate an example which provides a  suitable translation from discrete frames to Sun's g-frames.

متن کامل

Deciding Type Equivalence in a Language with Singleton Kinds

Work on the TILT compiler for Standard ML led us to study a language with singleton kinds: S(A) is the kind of all types provably equivalent to the type A. Singletons are interesting because they provide a very general form of de nitions for type variables and allow ne-grained control of type computations. Internally, TILT represents programs using a predicative variant of Girard's F! enriched ...

متن کامل

A general-purpose dependently-typed assembly language

In this paper we present Singleton, a dependently typed assembly language. Based upon the calculus of inductive constructions, Singleton’s type system allows procedures abstracting over terms, types, propositions, and proof terms. Furthermore, Singleton includes generalised singleton types. In addition to the primitive singleton types of other languages, these generalised singleton types allow ...

متن کامل

Congenital Malformations in Singleton Infants Conceived by Assisted Reproductive Technologies and Singleton Infants by Natural Conception in Tehran, Iran

Objective Multiple pregnancies occur more frequently in assisted reproductive technology (ART) compared to normal conception (NC). It is known that the risk of congenital malformations in a multiple pregnancy are higher than single pregnancy. The aim of this study is to compare congenital malformations in singleton infants conceived by ART to singleton infants conceived naturally. MaterialsAndM...

متن کامل

Sound and Complete Elimination of SingletonKindsKarl

Singleton kinds provide an elegant device for expressing type equality information resulting from modern module languages, but they can complicate the metatheory of languages in which they appear. I present a translation from a language with singleton kinds to one without , and prove that translation to be sound and complete. This translation is useful for type-preserving compilers generating t...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2000